/ Assembly List / LJCNetCommon / NetFile / CreateFolder

Namespace - LJCNetCommon


Parameters
path - The File specification.

Syntax

C#
public static Void CreateFolder(String path)

Creates a Folder Path if it does not already exist. (E)

Example

C#
using LJCNetCommon;

// Creates a Folder Path if it does not already exist.
private static void CreateFolder()
{
    string fileSpec = @"SubFolder\File.txt";

    // Creates folder "SubFolder" from the current folder.
    NetFile.CreateFolder(fileSpec);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.